a=input()
b=list(a)
a= ''.join(b[-1::-1])
print(int(a))